/**
 *Copyright (c) 2024 watereyes
 * safetymanagement is licensed under Mulan PubL v2.
 * You can use this software according to the terms and conditions of the Mulan
 * PubL v2.
 * You may obtain a copy of Mulan PubL v2 at:
 *          http://license.coscl.org.cn/MulanPubL-2.0
 * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND,
 * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT,
 * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE.
 * See the Mulan PubL v2 for more details.
 */
package com.koron.system.domain;


import com.koron.common.domain.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

@ApiModel(value = "字典数据", description = "字典数据实体类")
public class DictData extends BaseEntity {

    @ApiModelProperty(value = "数据Index", name = "dictIndex", required = true)
    private Integer dictIndex;

    @ApiModelProperty(value = "数据标签", name = "dictLabel", required = true)
    private String dictLabel;

    @ApiModelProperty(value = "数据值", name = "dictValue" )
    private String dictValue;

    @ApiModelProperty(value = "对应字典类型Key", name = "dictKey", required = true)
    private String dictKey;

    @ApiModelProperty(value = "对应字典类型名称", name = "dictKeyName" )
    private String dictKeyName;

    @ApiModelProperty(value = "备注", name = "remark", required = true)
    private String remark;

    private Long referenceCount;

    public Integer getDictIndex() {
        return dictIndex;
    }

    public void setDictIndex(Integer dictIndex) {
        this.dictIndex = dictIndex;
    }

    public String getDictLabel() {
        return dictLabel;
    }

    public void setDictLabel(String dictLabel) {
        this.dictLabel = dictLabel;
    }

    public String getDictValue() {
        return dictValue;
    }

    public void setDictValue(String dictValue) {
        this.dictValue = dictValue;
    }

    public String getDictKey() {
        return dictKey;
    }

    public void setDictKey(String dictKey) {
        this.dictKey = dictKey;
    }

    public String getDictKeyName() {
        return dictKeyName;
    }

    public void setDictKeyName(String dictKeyName) {
        this.dictKeyName = dictKeyName;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    public Long getReferenceCount() {
        return referenceCount;
    }

    public void setReferenceCount(Long referenceCount) {
        this.referenceCount = referenceCount;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("dictLabel", getDictLabel())
                .append("dictValue", getDictValue())
                .append("dictKey", getDictKey())
                .append("dictIndex", getDictIndex())
                .append("addUser", getAddUser())
                .append("addTime", getAddTime())
                .append("updateUser", getUpdateUser())
                .append("updateTime", getUpdateTime())
                .append("remark", getRemark())
                .append("referenceCount",getReferenceCount())
                .toString();
    }

}
